import router from "@/router"


export default class AuthUtils{
    static logout() {
        localStorage.removeItem('address')
        localStorage.removeItem('token')
        router.push('/login')
    }

    static isLogin() {
        return !!localStorage.getItem('token')
    }
}